﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SurveyItemsList.aspx.cs" Inherits="CRM.Web.SurveyManage.SurveyItemsList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" id="tTitle">
            <tr>
                <td class="left">
                    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
                </td>
                <td class="middle" >
                    <div class="pagetitle" >
                        <div>
                            <asp:Label ID="lblTitle" runat="server" Text="问卷题目列表"></asp:Label>
                        </div>
                    </div>
                </td>
                <td class="right">
                    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
                </td>
            </tr>
        </table> 
    <div id="divMain" >
    <div style="width: 100%">
    <div class="listdiv">
        <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
            <tr>
                <td class="title"><div  class="nowrap">
                    问卷编号:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtSURVEY_ID" runat="server" CssClass="txt" Style="width: 90px;"></asp:TextBox>
                </td>
                <td class="title"><div  class="nowrap">
                    问卷名称:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtSURVEY_NAME" runat="server" CssClass="txt" Style="width: 90px;"></asp:TextBox>
                </td>
                <td class="title"><div  class="nowrap">
                    题目编号:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtITEM_ID" runat="server" CssClass="txt" Style="width: 90px;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="title"><div  class="nowrap">
                    题目名称:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtITEM_NAME" runat="server" CssClass="txt" Style="width: 90px;"></asp:TextBox>
                </td>
                <td class="title">
                        <div class="nowrap">
                            题目类型:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlITEM_TYPE" runat="server" CssClass="ddl">
                        </asp:DropDownList>
                    </td>
                <td class="title"><div  class="nowrap">
                
                    </div>
                </td>
                <td class="content">
                    <div style="width: 200px;" class="nowrap">
                    <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                            OnClick="btnSearch_Click" />
                            <asp:Button ID="btnAdd" runat="server" Text="新 添" CommandName="Search" CssClass="btn title_cx"
                            OnClick="btnAdd_Click" />
                            <span class="btnspan"><input id="btnCancel" runat="server" type="button" value="返 回" class="btn title_fh" /></span></div>
                </td>
            </tr>
        </table>
        <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="true" 
            AllowSorting="true" PageSize="10"  SortExpressionValue="AUTOID"  SortDirectionValue="ASC">
            <Columns>
                <asp:BoundField DataField="AUTOID" HeaderText="自增编号"  SortExpression="AUTOID" Visible="false" />
                <asp:TemplateField HeaderText="题目编号" SortExpression="ITEM_ID">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifyITEM_ID" runat="server"  NavigateUrl='<%# Eval("AUTOID", ItemModifyUrl) %>' Text='<%# Bind("ITEM_ID") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>                
			    <asp:BoundField DataField="ITEM_NAME" HeaderText="题目名称"  SortExpression="ITEM_NAME"   />
			    <asp:BoundField DataField="ITEM_TYPE" HeaderText="题目类型"  SortExpression="ITEM_TYPE" />
			    <asp:BoundField DataField="ENINPUT" HeaderText="是否允许输入"  SortExpression="ENINPUT" Visible="false" />
			    <asp:BoundField DataField="ENNULL" HeaderText="是否必要"  SortExpression="ENNULL" Visible="false" />
			    <asp:BoundField DataField="SURVEY_ID" HeaderText="问卷编号"  SortExpression="ENNULL" Visible="false" />
			    <asp:TemplateField HeaderText="问卷名称" SortExpression="SURVEY_NAME">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifySURVEY_ID" runat="server"  NavigateUrl='<%# Eval("SURVEY_ID", SurveyModifyUrl) %>' Text='<%# Bind("SURVEY_NAME") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
			    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                <itemtemplate>
                <div style="white-space: nowrap;">
                <asp:HyperLink id="hlModify" runat="server"  NavigateUrl='<%# Eval("AUTOID", ItemModifyUrl) %>'>详细</asp:HyperLink>
                <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                </div>
				</itemtemplate>
                <headerstyle width="90px" />
            </asp:TemplateField>
            </Columns>	
            <RowStyle CssClass="row" />
            <AlternatingRowStyle CssClass="row2" />
            <HeaderStyle CssClass="header" />	
            <PagerStyle CssClass="pager" />	
        </dp:WebGridView>
    </div>
</div>
    </div>
    </form>
</body>
</html>
